//
//  LoginRegModel.m
//  MoXiProject
//
//  Created by 周筱雯 on 2017/6/30.
//  Copyright © 2017年 周筱雯. All rights reserved.
//

#import "LoginRegModel.h"

@implementation LoginRegModel


+(NSDictionary *)JSONKeyPathsByPropertyKey
{
    /**自定义         网络**/
    return @{@"userScore"       : @"score",
             @"userToken"       : @"token",
             @"userID"          : @"userId",
             @"userSign"        : @"userSign",
             @"userName"        : @"username",
             @"userImgPath"     : @"imgPath",
             @"userIsSign"      : @"isSign",
             @"userIsBinding"   : @"isBanding",
             @"userIdCard"      : @"userIdCard",
             @"userRealName"    : @"userRealName",
             @"userPhoneNumber" : @"phoneNumber",
             @"userLevelFlg"    : @"level"
             };
}

+ (NSValueTransformer *)JSONTransformerForKey:(NSString *)key
{
    return [MTLValueTransformer reversibleTransformerWithBlock:^id(id value) {
        return DEF_OBJECT_TO_STIRNG(value);
    }];
}

@end
